# -*- coding: utf-8 -*-
# @Time : 2023/11/27 18:59
# @Author : 支晓光
# @Email : 1473858993@qq.com
# @File : not_login_trading.py
# @Project : youguuUI
from appium.webdriver.common.appiumby import AppiumBy

from common.base_page import BasePage


class NotLoginTrading(BasePage):
    # 模拟炒股
    ImageView = AppiumBy.XPATH,'//android.widget.ImageView[@bounds="[501,1811][579,1889]"]'
    # 立即领取
    login_by_simulate = AppiumBy.ID,'com.jhss.youguu:id/login_by_simulate'
    # 断言
    TextView = AppiumBy.XPATH, '//android.widget.TextView[@bounds="[276,265][804,325]"]'
    # 取消
    iv_back_login = AppiumBy.ID,'com.jhss.youguu:id/iv_back_login'

    def not_login_trading(self):  # 模拟炒股未登录用例
        self.click_ele(self.ImageView)
        self.click_ele(self.login_by_simulate)
        self.dyele = self.find_element(self.TextView)
        self.click_ele(self.iv_back_login)
